-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Compilation fails with Literal of type double cannot be implicitly converted. #2708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you please share your benchmark that caused this failure? |
Sure. This is the benchmark
|
Does it work if you change it like this? - [Params(0.0, 0.05, 0.1, 0.5, 0.99, 1.0)]
+ [Params(0.0f, 0.05f, 0.1f, 0.5f, 0.99f, 1.0f)]
public float NonAsciiProbability { get; set; } |
I have been looking on the code before reading this, and yes that works. I was going to workaround it by just converting to double instead.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After updating to the latest .Net 9.0 SDK and updating Visual Studio we started having issues compiling the solutions. Since we had similar issues on our codebase, maybe it is related to the changes in overload resolution.
You can inspect the attached file.
c926cbed-3cb6-4e22-80b1-08aa98602f89.zip
The text was updated successfully, but these errors were encountered: